package com.jnc.web.biz.system.service;

import com.jnc.web.biz.system.model.DictData;

import java.util.List;

/**
 * @Author: jjn
 * @Date: 2018/11/7
 * @Desc:
 */
public interface DictDataService {

    public List<DictData> queryDictData(DictData record);
    public DictData getDictData(Integer dictDataId);
    public List<DictData> getDictDataByType(String dictType);
    public DictData getDictDataValue(DictData record);
    public List<DictData> checkDictData(DictData record);
    public int deleteDictData(String ids);
    public int addDictData(DictData record);
    public int editDictData(DictData record);

    /**
     * 根据指定dictType和dictCode，获取dictValue
     * @param dictType
     * @param dictCode
     * @return
     */
    public String getValueBy(String dictType, String dictCode);
}
